package com.sky.mapper;

import com.sky.annotation.Autofill;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.enumeration.OperationType;
import com.sky.result.PageResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmpMapper {

@Autofill(value = OperationType.UPDATE)
    void upDate(Employee employee);

    Employee findById(Long empId);

    void status(Integer status, Long id);

    List<Employee> findAll(String name);
@Autofill(value = OperationType.INSERT)
    void add(Employee employee);
    @Autofill(value = OperationType.UPDATE)
    void upDateEmp(Employee empMapperById);

}
